package com.wn.ioc.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @FileName: AnnoApplication
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/7/17 - 15:05
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
public class AnnoApplication {

    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        User user = context.getBean(User.class);
        System.out.println(user);
    }
}
